package com.healthsystem.portplay.controller;

import com.healthsystem.portplay.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class FenDianController {
    private  final UserDao userDao;
    @Autowired
    public FenDianController(UserDao userDao){this.userDao=userDao;}
    @GetMapping("/branch")
    public List<Map<String,Object>>GetFenDian(){
        return  userDao.GetFenDian();
    }
}
